package com.credithc.phb.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.credithc.phb.common.datasource.DatabaseContextHolder;
import com.credithc.phb.common.datasource.DatabaseType;
import com.credithc.phb.entity.PhappCrm;
import com.credithc.phb.mapper.PhappCrmMapper;

//@Repository
public class PhappCrmDao {

	//@Autowired
	private PhappCrmMapper mapper;
	
	public PhappCrm getCrmByName(String name){
		DatabaseContextHolder.setDatabaseType(DatabaseType.mytestdb2);
		return mapper.findByName(name);
	}
}
